#include <wx/wx.h>
#include <wx/xrc/xmlres.h>

#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>

#include <sstream>

#include "comLogManager.h"
#include "MainFrameAui.h"
#include "ttcodeStateChart.h"


MainFrameAui::MainFrameAui()
: wxAuiManager()
,m_NaviPi()
,m_TextPi()
,m_InfoPi()
{
	try
	{
		wxWindow* pWin = globalFrame->getManagedWin();
		this->SetManagedWindow(pWin);

		this->addNavi();
		this->addText();
		this->addInfo();
		this->Update();
	}
	catch(...)
	{

	}
}
void MainFrameAui::addNavi(void)
{
	m_NaviPi.Name("navi");
	m_NaviPi.Caption("navi");
	m_NaviPi.CloseButton(false);
	m_NaviPi.Show();
	m_NaviPi.Left();
	m_NaviPi.Layer(1);
	m_NaviPi.Row(0);
	m_NaviPi.Position(0);
	this->AddPane(globalNavi,m_NaviPi);
}
void MainFrameAui::addText(void)
{
	m_TextPi.Name("text");
	m_TextPi.Caption("text");
	m_TextPi.CloseButton(false);
	m_TextPi.Show();
	m_TextPi.Layer(0);
	m_TextPi.Centre();
	this->AddPane(globalTextEdit,m_TextPi);
}
void MainFrameAui::addInfo(void)
{
	m_InfoPi.Name("info");
	m_InfoPi.Caption("info");
	m_InfoPi.CloseButton(false);
	m_InfoPi.Show();
	m_InfoPi.Bottom();
	m_InfoPi.Layer(1);
	m_InfoPi.Row(0);
	m_InfoPi.Position(0);
	this->AddPane(globalInfo,m_InfoPi);
}
